﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Infrastructure;

namespace Algorithms
{
    public abstract class PredictionAlgorithm<RatingType> where RatingType : ICountable, new()
    {
        /// <summary>
        /// Prediction of rating method , any prediction algorithm should implement this method
        /// </summary>
        /// <param name="user"></param>
        /// <param name="item"></param>
        /// <returns></returns>
        public abstract double PredictRating(User<RatingType> user, Item<RatingType> item);
        public abstract string Name { get; }
    }
}
